<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8"/>
        <title></title>
    </head>
    <body>
        <button type="button">按钮</button>
        <script type="text/javascript">
            var btn = document.querySelector("button");
            btn.onclick =function(){
                //location.href = "http://www.baidu.com";
               // location.assign("http://www.taobao.com");
               // location.replace("http://www.mi.com");
                location.reload();
            }
        
        
        
        
        </script>
    </body>
</html>